package com.example.retrofit.controller;

import com.example.retrofit.api.CustomerApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fans
 */
@Slf4j
@RequestMapping("/base/api")
@RestController
public class BaseController {

    @Autowired
    private CustomerApi customerApi;

    @GetMapping("/customer/health")
    public String customerHealth() {
        return customerApi.healthCheck();
    }

}
